<!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="utf-8">
    <?php echo $this->headTitle(); ?>
    <?php echo $this->headMeta(); ?>
    <?php echo $this->headScript(); ?>

    <!-- Le styles -->
    <link href="/www/bootstrap/css/bootstrap.css" rel="stylesheet">
    <style>
      body {
        padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
      }
    </style>
    <link href="/www/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if IE]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- Ишак10 мудила Не хочет реагировать на if IE -->
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    
    <!-- Le fav and touch icons -->
	
    <link rel="icon" href="/www/favicon.ico" type="image/x-icon">
    <!--
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../bootstrap/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../bootstrap/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../bootstrap/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../bootstrap/ico/apple-touch-icon-57-precomposed.png">-->
	
	<script type="text/javascript" src="//vk.com/js/api/openapi.js?70"></script>

	<script type="text/javascript">
	  VK.init({apiId: 3277055, onlyWidgets: true});
	</script>
  </head>

  <body>
	<div id="fb-root"></div>
	<script>(function(d, s, id) {
	  var js, fjs = d.getElementsByTagName(s)[0];
	  if (d.getElementById(id)) return;
	  js = d.createElement(s); js.id = id;
	  js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, 'script', 'facebook-jssdk'));</script>
  
    <div class="wrapper">
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
		  <a class="brand" id="logo" href="/"> <img src="/www/images/logo.png"/></a>
          <a class="brand" href="/">LectureBox.ru</a>
          <div class="nav-collapse collapse">
               <p class="navbar-text pull-right">
                   
                    <span id="locale">
                        <?php echo $this->translate('Выберете язык:') ?>
                    <a href="<?php echo $this->url(array('controller' => 'index',
                        'action' => 'locale',
                        'locale' => 'ru_RU'), 'default', true); ?>">
                      <img src="/www/images/ru.png" />
                    </a>
                    <a href="<?php echo $this->url(array('controller' => 'index', 
                        'action' => 'locale', 
                        'locale' => 'en_US'), 'default', true); ?>">
                      <img src="/www/images/en.png" />
                    </a>
                  </span> 
                  &nbsp; 
                  <?php if ($this->username != 'гость'): ?>    
                       <?php echo $this->translate('Привет'); ?> <a href="/auth/profile" class="navbar-link"><?php echo $this->username; ?></a>
                  <?php else: ?>  
                      <?php echo $this->translate('Привет гость');?>
                  <?php endif; ?>
              </p>
              <?php echo $this->navigation($this->navigation); ?>

          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

<div class="container-fluid">
      <div class="row-fluid">
        <div class="span2">
          <div class="well sidebar-nav">
              <ul class="nav nav-list">
                  <li class="nav-header"><?php echo $this->translate('Список предметов');?></li>
                  <?php foreach ($this->cats as $iCat => $cat): ?>
                      <li>
                          <a href="/lectures/subject/id/<?php echo $cat['subject_id']; ?>">
                              <?php echo $this->translate($cat['name']); ?></a>
                      </li>
                  <?php endforeach; ?>
              </ul>             
            </div><!--/.well -->
        </div><!--/span-->
        
        <div class="span10">
            <h3><?php 
		echo $this->title;
                if (Zend_Controller_Front::getInstance()->getRequest()->controller
                        == 'lectures' &&
                        Zend_Controller_Front::getInstance()->getRequest()->action
                        == 'subject'
                )
                    echo $this->translate($this->cname);
                ?></h3> 
            <?php if (count($this->messages)): ?>
                <ul class="unstyled" id="messages">
                    <?php foreach ($this->messages as $message) : ?>
                        <?php echo $message; ?>
                    <?php endforeach; ?>
                </ul>
            <?php endif; ?>

            <?php echo $this->layout()->content; ?>
                
        </div><!--/span-->
      </div><!--/row-->      
      
        <div class="push"><!--//--></div>
    </div>
          
    <footer>
        <div class="container">
            <?php echo $this->translate('Создатели: Марин В. Тыква А. Соколов Д. Козел Р.');?><br>
            <a href="http://LectureBox.ru">LectureBox.ru</a> - <?php echo $this->translate('Все лекции в одной коробке.'); ?><br>
            2012 - 2013        
        </div>
    </footer>
</div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <!--
    <script src="/www/bootstrap/js/jquery.js"></script>	 
    <script src="../bootstrap/js/bootstrap-transition.js"></script>
    <script src="../bootstrap/js/bootstrap-alert.js"></script>
    <script src="../bootstrap/js/bootstrap-modal.js"></script>
    <script src="../bootstrap/js/bootstrap-dropdown.js"></script>
    <script src="../bootstrap/js/bootstrap-scrollspy.js"></script>
    <script src="../bootstrap/js/bootstrap-tab.js"></script>
    <script src="../bootstrap/js/bootstrap-tooltip.js"></script>
    <script src="../bootstrap/js/bootstrap-popover.js"></script>
    <script src="../bootstrap/js/bootstrap-button.js"></script>
    <script src="../bootstrap/js/bootstrap-collapse.js"></script>
    <script src="../bootstrap/js/bootstrap-carousel.js"></script>
    <script src="../bootstrap/js/bootstrap-typeahead.js"></script>
    -->

  </body>
</html>
